/* eslint-disable quotes */
// eslint-disable-next-line quotes
// import wrapper from "@/layout/wrapper.vue"
import Homestay from '@/views/index/home.vue';

/**
 *
 * 路由配置规则：
 *
 * {
 *  path:'',路径
 *  name:'',路由名称，生成menu时menu name
 *  meta:{},额外信息，icon为menu中的icon
 *  lang:'',多语言配置
 *  children: [], 子路由，menu中的子menu 没有时可为空数组
 * }
 *
 */

const staticRoutes: any = [
    {
        path: "/index/home",
        name: "首页",
        lang: "首页",
        component: Homestay,
        children: [],
        meta: {
            icon: "custom-icon-Home",
        },
    },

    {
        path: "/goods",
        name: "设备",
        lang: "设备",
        meta: {
            icon: "custom-icon-Activity1",
        },
        children: [
            {
                path: "/goods/list",
                name: "设备管理",
                lang: "设备管理",
                meta: {
                    icon: "custom-icon-Star2",
                },
                component: () => import('@/views/goods/list.vue')
            },
        ],
    },
    {
        path: "/advertising",
        name: "广告管理",
        lang: "广告管理",
        meta: {
            icon: "custom-icon-Chart1",
        },
        children: [
            {
                path: "/advertising/materialManagement",
                name: "素材管理",
                lang: "素材管理",
                meta: {
                    icon: "custom-icon-Star2",
                },
                component: () => import('@/views/advertising/materialManagement.vue')
            },
            {
                path: "/advertising/programManagement",
                name: "节目管理",
                lang: "节目管理",
                meta: {
                    icon: "custom-icon-Star2",
                },
                children: [],
                component: () => import('@/views/advertising/programManagement.vue')
            },
            {
                path: "/advertising/advertisingRelease",
                name: "节目单",
                lang: "节目单",
                meta: {
                    icon: "custom-icon-Star2",
                },
                children: [],
                component: () => import('@/views/advertising/advertisingRelease.vue')
            },

        ],
    },
    {
        path: "/account",
        name: "账户管理",
        lang: "账户管理",
        meta: {
            icon: "custom-icon-Setting2",
        },
        children: [
            {
                path: "/account/Roles",
                name: "账号列表",
                lang: "账号列表",
                meta: {
                    icon: "custom-icon-Star2",
                },
                component: () => import('@/views/account/Roles.vue')
            },
            {
                path: "/account/roleList",
                name: "角色列表",
                lang: "角色列表",
                meta: {
                    icon: "custom-icon-Star2",
                },
                component: () => import('@/views/account/roleList.vue')
            },


        ],
    },
]
export default staticRoutes
